// Fill out your copyright notice in the Description page of Project Settings.


#include "StartUserWidget.h"

#include "Components/Button.h"
#include "Components/EditableTextBox.h"

// 初始化界面
bool UStartUserWidget::Initialize()
{
	if(!Super::Initialize())
	{
		return false;
	}

	// 初始化创建文件按钮
	CreateFileButton = Cast<UButton>(GetWidgetFromName(TEXT("Button_CreateFile")));

	// 创建文件内容
	CrateTextBox = Cast<UEditableTextBox>(GetWidgetFromName(TEXT("EditableTextBox_Create")));

	// 初始化写入Game.ini文件按钮
	WriteGameIniButton = Cast<UButton>(GetWidgetFromName(TEXT("Button_WriteGameIni")));

	// 初始化读取Game.ini文件按钮
	ReadGameIniButton = Cast<UButton>(GetWidgetFromName(TEXT("Button_ReadGameIni")));
	
	return true;
}
